import { Statistic } from "@/api/interface";
import { STATISTIC_PORT } from "@/api/config/servicePort";
import http from "@/api";

export const getGoodsStatistic = (params: number) => {
  return http.get<Statistic.ResStatistic>(STATISTIC_PORT + `/goods`, { tab: params }, { loading: false });
};

export const getStatisticTab = () => {
  return http.get<Statistic.ResTab[]>(STATISTIC_PORT + `/tab`);
};
